<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ include file="/sys/include/header.jsp" %>
<%@ page import="com.es.main.*"%>
<html>
<head>
<title></title>
<link href="sys/style01/css/table.css" rel="stylesheet" type="text/css" />
<link href="sys/css/banzu.css" rel="stylesheet" type="text/css"  >
</head>
<%
	//如果引入了头文件： /sys/include/header.jsp，该部分就不需要加了
	//loginUserBeen userinfo=(loginUserBeen)session.getAttribute("loginuser");
	String userName= userLogin.getLoginName().trim();
%>
<script type="text/javascript">
	function save(){
		if(document.form1.oldPassword.value==""){
			alert("原密码不能为空！");
			return;
		}
		if(document.form1.newPassword.value==""){
			alert("设置密码不能为空！");
			return;
		}
		if(document.form1.newPassword.value!=document.form1.renewPassword.value){
			alert("重复输入密码不一致！");
			return;
		}
		//alert("submit");
		document.form1.submit();
	}
</script>
<body class="ridgeBody">
<form name="form1" method="post" action="jsp/system/modifypassword.action">
  <table class=datatable width="60%" cellpadding='0' cellspacing='0' border='1' bordercolorDark='white' bordercolorLight='#BEBEBE' >
    <tr >
      <td height="32" colspan="2" class="dataTitle">修改登录密码</td>
    </tr>
    <tr>		
      <td width="30%" class="datatr1">登录系统名：</td>
      <td width="70%" >
		<input name="emp_name" type="text" class="input"  value="<%=userName%>" readonly="true">
      </td>
    </tr>    
    <tr>
      <td class="datatr1">原密码<font color="#FF0000">*</font>：</td>
      <td ><input name="oldPassword" type="password" class="input" ></td>
    </tr>    
    <tr>
      <td class="datatr1">设置新密码<font color="#FF0000">*</font>：</td>
      <td ><input name="newPassword" type="password" class="input" ></td>
    </tr>
    <tr>
      <td class="datatr1">重复新密码<font color="#FF0000">*</font>：</td>
      <td ><input name="renewPassword" type="password" class="input"></td>
    </tr>
    <tr class="tabimputbutton">
      <td colspan="2" class="dataTitle">
		<input type="button" name="Submit1" value="提交" onClick="save()">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      
		<input type="reset" name="Submit" value="取消">
	  </td>
    </tr>
  </table>
</form>
</body>
</html>
